package com.htthorizon.model.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.htthorizon.common.core.annotation.Excel;
import com.htthorizon.common.core.web.domain.BaseEntity;

/**
 * 数据源请求参数配置对象 model_source_param
 *
 * @author mark
 * @date 2023-11-20
 */
public class ModelSourceParam extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 数据源ID */
    @Excel(name = "数据源ID")
    private Long sourceId;

    /** 请求位置:1请求头2请求体3认证配置 */
    @Excel(name = "请求位置:1请求头2请求体3认证配置")
    private Integer paramLocation;

    /** 参数名称 */
    @Excel(name = "参数名称")
    private String paramName;

    /** 参数值 */
    @Excel(name = "参数值")
    private String paramVal;

    /** 状态0正常-1已删除 */
    @Excel(name = "状态0正常-1已删除")
    private Integer status;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public void setParamLocation(Integer paramLocation)
    {
        this.paramLocation = paramLocation;
    }

    public Integer getParamLocation()
    {
        return paramLocation;
    }

    public void setParamName(String paramName)
    {
        this.paramName = paramName;
    }

    public String getParamName()
    {
        return paramName;
    }

    public void setParamVal(String paramVal)
    {
        this.paramVal = paramVal;
    }

    public String getParamVal()
    {
        return paramVal;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("paramLocation", getParamLocation())
                .append("paramName", getParamName())
                .append("paramVal", getParamVal())
                .append("remark", getRemark())
                .append("status", getStatus())
                .append("sort", getSort())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
